#include "windows.h"
#include "stdio.h"
DWORD WINAPI TestProc(LPVOID pParam)
{
	CHAR *pszText = (CHAR*)pParam;
	while (1)
	{
		printf("%s\n", pszText);
		Sleep(1000);
	}
	return 0;
}
DWORD WINAPI TestProc2(LPVOID pParam)
{
	CHAR *pszText = (CHAR*)pParam;
	while (1)
	{
		printf("%s\n", pszText);
		Sleep(1000);
	}
	return 0;
}
void Thread()
{
	DWORD nID = 0;
	CHAR *szText = "*******************";
	HANDLE hThread = CreateThread(NULL, 0, TestProc, szText,
		0, &nID);
	CHAR *szText2 = "------------------";
	HANDLE hThread2 = CreateThread(NULL, 0, TestProc2,
		szText2, 0, &nID);
	//	getchar( );
	//	SuspendThread( hThread );
	//	ResumeThread( hThread2 );
}
int main(int argc, char* argv[])
{
	Thread();
	getchar();
	return 0;
}
